<?php

class UploadifyController extends BaseController {
	// This contructor is just for testing IOC.
	public function __construct(OrderRepository $order) {
		//$order->output();
	}

	public function show()
	{
		return View::make('uploadify.show');
	}

	public function upload() {
		echo 'hieu';
		exit();


		// $uploadedImages = array();
		// foreach(Input::file("image") as $image) {
		// 	$imageName = time() . "_" . $image->getClientOriginalName();

		// 	$uploadFlag = $image->move("uploads", $imageName);

		// 	if($uploadFlag) {
		// 		$uploadedImages[] = $imageName;
		// 	}
		// }

		// return Response::json(array("success" => true, "message" => "Images uploaded", "images" => $uploadedImages));
	}

	public function ioc() {
		//$value = App::make('foo');
		//var_dump($value); exit();

		$value = App::make('foo2');
		var_dump($value); exit();

		// $fooBar = App::make('FooBar');
		// var_dump($fooBar); exit();
	}

}
